/*
 * <p>Copyright ®Alyce_WX版权所有。</p>
 * 类名:ViewRoleRightPO
 * 创建人:alyce_wx
 * 创建时间:2017-03-30
 */
package com.wx.demo.wcd.domain.po;


import com.yjhl.framework.domain.po.PO;
import com.wx.demo.wcd.domain.pk.ViewRoleRightPK;

/**
 * persistent class for ViewRoleRight view
 * @author alyce_wx
 * @since 1.8
 * @version 1.0.0  
 */
 
public class ViewRoleRightPO extends PO {
    private static final long serialVersionUID = 1L;

    /**
     * 角色表标识
     */
    private String roleId;
    /**
     * 角色名称
     */
    private String roleName;
    /**
     * 角色描述
     */
    private String roleDesc;
    /**
     * 角色权限关联表标识
     */
    private String roleRightId;
    /**
     * 权限表标识
     */
    private String rightId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    public String getRoleRightId() {
        return roleRightId;
    }

    public void setRoleRightId(String roleRightId) {
        this.roleRightId = roleRightId;
    }

    public String getRightId() {
        return rightId;
    }

    public void setRightId(String rightId) {
        this.rightId = rightId;
    }
    
    
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNull()
	 */
	@Override
    public boolean isNull(){
		return (		
    		roleId == null     	
    		&&
    		roleName == null     	
    		&&
    		roleDesc == null     	
    		&&
    		roleRightId == null     	
    		&&
    		rightId == null     	
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isEmpty()
	 */
	@Override
    public boolean isEmpty(){
		return (		
    	roleId == null 
    		&&
    	roleName == null 
    		&&
    	roleDesc == null 
    		&&
    	roleRightId == null 
    		&&
    	rightId == null 
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkNull()
	 */
	@Override
    public boolean isNonPkNull(){
		return (		
    		roleName == null     	
    		&&
    		roleDesc == null     	
    		&&
    		roleRightId == null     	
    		&&
    		rightId == null     	
				);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkEmpty()
	 */
	@Override
    public boolean isNonPkEmpty(){
		return (		
    	roleName == null 
    		&&
    	roleDesc == null 
    		&&
    	roleRightId == null 
    		&&
    	rightId == null 
				);
	}
	
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#buildPK()
	 */
	@Override
    public ViewRoleRightPK buildPK(){
    	ViewRoleRightPK entityPK = new ViewRoleRightPK();
    	
		entityPK.setRoleId( roleId );
    	
    	return entityPK;
	}
	
	@Override
	public String toString(){
		
		String toString = "{";
		  	 if(this.roleId != null){
		   	 	toString += (this.roleId+",");
		   	 }
		  	 if(this.roleName != null){
		   	 	toString += (this.roleName+",");
		   	 }
		  	 if(this.roleDesc != null){
		   	 	toString += (this.roleDesc+",");
		   	 }
		  	 if(this.roleRightId != null){
		   	 	toString += (this.roleRightId+",");
		   	 }
		  	 if(this.rightId != null){
		   	 	toString += (this.rightId+",");
		   	 }
		  if(toString.lastIndexOf(",") == ( toString.length()-1)){
		  	toString = toString.substring(0, toString.length()-1);
		  }
		 toString += "}";
		return toString;
		
	}
	
	public String inputDescription(){
		
		String inputDescription = "{";
		   if(this.roleId != null){
		   		inputDescription += (this.roleId+" : 角色表标识,");
		   }
		   if(this.roleName != null){
		   		inputDescription += (this.roleName+" : 角色名称,");
		   }
		   if(this.roleDesc != null){
		   		inputDescription += (this.roleDesc+" : 角色描述,");
		   }
		   if(this.roleRightId != null){
		   		inputDescription += (this.roleRightId+" : 角色权限关联表标识,");
		   }
		   if(this.rightId != null){
		   		inputDescription += (this.rightId+" : 权限表标识,");
		   }
		  if(inputDescription.lastIndexOf(",") == ( inputDescription.length()-1)){
		  	inputDescription = inputDescription.substring(0, inputDescription.length()-1);
		  }
		  inputDescription += "}";
		
		return inputDescription;
		
	}
	
	
}
